﻿namespace NopSolutions.NopCommerce.LuceneHelper
{
    public class CategoryFilterValue
    {
        private int _categoryId;
        private long _total;
        private bool _hasChildren;
        public CategoryFilterValue(int categoryId, long total)
        {
            CategoryId = categoryId;
            Total = total;
        }
        public CategoryFilterValue(int categoryId, long total, bool hasChildren)
            :this(categoryId, total)
        {
            HasChildren = hasChildren;
        }

        public int CategoryId
        {
            get { return _categoryId; }
            set { _categoryId = value; }
        }

        public long Total
        {
            get { return _total; }
            set { _total = value; }
        }

        public bool HasChildren
        {
            get { return _hasChildren; }
            set { _hasChildren = value; }
        }
    }
}
